package com.wuseguang.springcloud.service.impl;

import com.wuseguang.springcloud.service.DeptClientService;
import com.wuseguang.springcloud.util.Result;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;


@Component
public class DeptClientServiceFallbackFactory implements FallbackFactory<DeptClientService> {


    @Override
    public DeptClientService create(Throwable throwable) {

        return new DeptClientService() {

            @Override
            public Result tlogin(String phone, String pwd, Integer type, String code) {
                return null;
            }

            @Override
            public Result plogin(String phone, String pwd, Integer type, String code) {
                return null;
            }

            @Override
            public Result alogin(String phone, String pwd) {
                return null;
            }

            @Override
            public Result getOfficialAccountOpenId(String code, Integer type) {
                return null;
            }
        };
    }
}

